package com.jiutong.meipenggang.ui.fragments;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.jiutong.meipenggang.R;
import com.jiutong.meipenggang.adapters.DailyActAdapter;
import com.jiutong.meipenggang.base.BaseFragment;

import java.util.ArrayList;
import java.util.List;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by bdf on 2017/9/28.
 */

public class DailyActFragment extends BaseFragment {
    @Bind(R.id.rv_daily_act)
    RecyclerView rvDailyAct;

    @Override
    protected int getLayoutResouceId() {
        return R.layout.fragment_daily_act;

    }

    @Override
    protected void initView() {
        super.initView();
        List test = new ArrayList();
        test.add("1");
        test.add("1");
        test.add("1");
        test.add("1");
        test.add("1");
        test.add("1");
        test.add("1");
        rvDailyAct.setLayoutManager(new LinearLayoutManager(getContext()));
        rvDailyAct.setAdapter(new DailyActAdapter(getContext(), R.layout.item_daily_act, test));
    }


}
